package com.bgds.sys.api.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bgds.sys.api.project.request.ProjectRequest;
import com.bgds.sys.api.project.response.ProjectItemResponse;
import com.bgds.sys.module.entity.project.ProjectItem;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author chenchao
 * @date 2021/9/14
 */
public interface ProjectItemService {
    /**
     * 添加
     *
     * @param item
     * @return void
     * @author chenchao
     * @date 2021/9/15
     */
    void add(ProjectItem item);


    /**
     * 项目查询
     *
     * @param request
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.bgds.sys.module.entity.project.Project>
     * @author chenchao
     * @date 2021/9/14
     */
    IPage<ProjectItemResponse> pageList(ProjectRequest request);


    /**
     * 功能描述
     *
     * @param id
     * @return com.bgds.sys.module.entity.project.Project
     * @author chenchao
     * @date 2021/9/14
     */
    ProjectItemResponse getProjectItem(Long id);


    /**
     * 导出
     *
     * @param ids
     * @return void
     * @author chenchao
     * @date 2021/9/15
     */
    void export(HttpServletResponse response, String ids);


    /**
     * 统计
     *
     * @param
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @author chenchao
     * @date 2021/9/19
     */
    List<Map<String, Object>> statistics();

}
